const http = require("http");

// 创建服务对象
const server = http.createServer((req, res) => {
  let body = "";
  req.on("data", (chunk) => {
    body += chunk;
  });
  req.on("end", () => {
    console.log("表单信息 = ", body);
  });
  res.end("hello");
});

server.listen(3000, () => {
  console.log("服务已经启动...");
});
